home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-06-15 | 815 b | 46 lines | [TEXT/MWPS] |
- {See antialias.p for comments.}
-
- program anti;
- uses
- {$IFC UNDEFINED THINK_PASCAL}
- Types, QuickDraw, Events, Menus, Dialogs, Fonts, Resources, Devices,
- {$ENDC}
- AntiAlias;
-
- var
- rBounds: Rect;
- wind: WindowPtr;
-
- procedure InitMacintosh;
- begin
- {$IFC UNDEFINED THINK_PASCAL}
- MaxApplZone;
-
- InitGraf(@qd.thePort);
- InitFonts;
- FlushEvents(everyEvent, 0);
- InitWindows;
- InitMenus;
- TEInit;
- InitDialogs(nil);
- {$ENDC}
- InitCursor;
- end; {InitMacintosh}
-
- begin
- InitMacintosh;
-
- SetRect(rBounds, 50, 50, 400, 150);
- wind := NewCWindow(nil, rBounds, 'AntiAliasTest', true, plainDBox, WindowPtr(-1), false, 0);
- SetPort(wind);
-
- TextSize(48);
- MoveTo(10, 40);
- DrawString('Testarneshatt');
- MoveTo(10, 40 + 50);
- if ADrawString('Testarneshatt') <> noErr then
- SysBeep(1);
-
- while not Button do
- ;
- end.